package com.sh.data.engine.application.model.dto.datadev;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: zigui.zdf
 * @description:
 * @date: 2021/6/29 14:03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema
public class FlinkTableFieldResponse {

    public FlinkTableFieldResponse(String fieldName, String fieldType) {
        this.fieldName = fieldName;
        this.fieldType = fieldType;
    }

    public FlinkTableFieldResponse(String fieldName, String fieldType, Integer isPartition) {
        this.fieldName = fieldName;
        this.fieldType = fieldType;
        this.isPartition = isPartition;
    }

    @Schema(description = "字段名")
    private String fieldName;

    @Schema(description = "字段类型")
    private String fieldType;

    private Integer isPartition;

    private Boolean isPk = Boolean.FALSE;


}
